<?
  class add_model_module{   protected $db;
    function __construct(&$db){
     $this->db=&$db;
    }

    function get_info($return,$table,$compared_sql,$compared_request){
     return $this->db->take_info($return,$table,$compared_sql,$compared_request);
     }

     function returnLastId($oper="=",$table="id_lang_text",$arg="id"){
    $q=$this->db->row_array($this->db->query("SELECT MAX(".$arg.")as lid FROM ".$table.";"));
    if($oper=="+")
    return $q['lid']++;
    elseif($oper=="-")
     return $q['lid']--;
     elseif($oper=="=")
     return $q['lid'];


    }





 }
?>